<template>
  <div class="quenue">
      <div class="deviceCode">
        <div>设备码</div>
        <el-input
          v-model="queryParams.place"
          placeholder="设备码"
          clearable
        />
      </div>
      <div class="deviceCode">
        <div>玻璃码</div>
        <el-input
          v-model="queryParams.optCodeContext"
          placeholder="玻璃码"
          clearable
          @change="handlerQuenue"
        />
      </div>
  </div>
</template>

<script>
import {updateQuenue} from "@/api/assembly/glass"
export default {
  data() {
    return {
        queryParams:{
            place:null,
            optCodeContext:null
        }
    };
  },
  methods: {
    handlerQuenue(){
        this.queryParams.optCodeContext = this.queryParams.optCodeContext.replace("，", ",")
        updateQuenue(this.queryParams).then((res)=>{
            this.$message.success(res.msg||'操作成功')
        })
    }
  },
  created() {},
};
</script>

<style lang="less" scoped>
.quenue {
  width: 100%;
  height: 100%;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
    .deviceCode{
        width:300px;
        min-height: 80px;
        transform: translateY(-200px);
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        
    }
}
</style>